home *** CD-ROM | disk | FTP | other *** search
- on PurgeWindows
- --Blows away all but Navigation Pallette
- repeat with aa = count (the windowlist) down to 1
- if getat(the windowlist,aa) <> (window "Navigation") then
- set goaway = getat(the windowlist,aa)
- close goaway
- forget goaway
- end if
- end repeat
-
- --in case the QT Movie pallette was removed...
- ResumeAudio
- end
-
- on RemoveWindow Who
- --this closes and purges from memory
- --used becasause we want to design the close squares
- close window Who
- forget window Who
- --put "Closing " & Who & " Window"
- end
-
-
- on RollWindow Who
- --Toggle Function
- set WindowAt = the rect of window Who
- set WindowSource = the sourceRect of window Who
- set height = getat (WindowSource, 4) - getat(WindowSource,2)
- set CurrentHeight = getat (WindowAt, 4) - getat(WindowAt,2)
-
- if CurrentHeight <=25 then
- --this rolls the window down from a control bar
- set NewY = getat (WindowAt,2) + height
- --put "Rolldown " & Who
- else
- --this rolls the window up into just a control bar
- set NewY = getat (WindowAt,2) + 25
- --put "Rollup " & Who
- end if
-
- --this puts the new rect on stage
- setat (WindowAt,4,NewY)
- set the rect of window Who = WindowAt
- end